from app.models.artist import Artist
from google.appengine.ext import db

class Song(db.Model):
    """Models a Song."""
    artist = db.ReferenceProperty(Artist)
    name = db.StringProperty()
    song = db.StringProperty(multiline=True)
    date = db.DateTimeProperty(auto_now_add=True)
    author = db.UserProperty()
    numberOfVotes = db.IntegerProperty()
    totalVotes = db.IntegerProperty()
    